package dao;


import information.User;

public interface UserDAO
{
	public boolean login(String name, String password,Integer flag) throws Exception;//判断用户密码是否正确,0代表用户名，1代表密码
    public boolean loginName(String name) throws Exception;//返回用户名是否存在
    public boolean loginPassword(String name,String password) throws Exception;//返回正确密码
    public boolean register(User user) throws Exception;//注册功能
    public boolean changePassword(String name,String newPassword) throws Exception;//更改密码
    public boolean changeMoney(String name,double alterMoney) throws Exception;//改变钱，充值或者购买扣费
    public boolean passwordLimit(String password)throws Exception;//限制密码
    public User getMessage(String name);//获得除用户密码的个人信息
    
}